for j in range(1,10):
    for i in range(1,j+1):
        z = i*j
        print('{}*{}={:<4}'.format(i,j,z),end='')
    print('') 